public final class JaxbBindingsInitializer
extends java.lang.Object
implements com.vmware.vise.util.AutoCloseable, org.eclipse.gemini.blueprint.context.BundleContextAware
| Constructor and Description |
|---|
JaxbBindingsInitializer(com.vmware.vise.search.SearchServiceExtensionRegistry searchRegistry,
java.lang.String objectNamespace,
java.util.Collection<java.lang.String> bindingPackages)
Register JAXB bindings for objects in objectNamespace.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
public JaxbBindingsInitializer(com.vmware.vise.search.SearchServiceExtensionRegistry searchRegistry,
java.lang.String objectNamespace,
java.util.Collection<java.lang.String> bindingPackages)
searchRegistry - The inventory service data adapter's extension registry.objectNamespace - The xml namespace of objects published to Inventory Service. For
example, if the fully-qualified type names of objects published
to Inventory Service begin with a prefix of "foo", where the
fully-qualified type names are in the format "foo:objectType",
then this argument should be "foo".bindingPackages - Packages containing jaxb binding classes.classLoader - ClassLoader capable of loading classes from the bindingPackages.java.lang.IllegalArgumentException - If any parameters are null.public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
setBundleContext in interface org.eclipse.gemini.blueprint.context.BundleContextAwarepublic void close()
close in interface com.vmware.vise.util.AutoCloseableCopyright @ 2012 VMware, Inc. All rights reserved.